package com.itmuch.contentcenter.feignClient;

import com.itmuch.contentcenter.domain.user.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author : lxc
 * @date : 2021-07-11
 */
//@Component
@FeignClient(name = "user-center")
public interface UserCenterFeignClient {

    @GetMapping("/users/{id}")
    UserDTO findById(@PathVariable(value = "id") Integer id);

    @GetMapping("/test/tx")
    void testTx();
}
